﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Teamboard.Models;

namespace Teamboard.Helpers
{
    public class Mappings : AutoMapper.Profile
    {
        protected override void Configure()
        {
            base.Configure();

            CreateMap<TeamCitySharp.DomainEntities.Project, Project>()
                .ForMember(x => x.Id, o=> o.MapFrom( y => y.Id))
                .ForMember(x => x.Name, o => o.MapFrom(y => y.Name));

            CreateMap<TeamCitySharp.DomainEntities.BuildConfig, BuildConfiguration>()
                .ForMember(x => x.Id, o => o.MapFrom(y => y.Id))
                .ForMember(x => x.Name, o => o.MapFrom(y => y.Name));

        }
    }
}